home *** CD-ROM | disk | FTP | other *** search
- ' SIMTIDMO -- QuickBASIC test of the SIMTIME subroutine 25 June 86
- ' by David L. Poskie (608) 274-9560
- ' 7118 Raymond Rd. Madison, WI 53719
- ' Please run any suggestions, corrections, additions, or changes by me.
- ' I can be messaged on all the major Madison, WI RBBS's.
-
- ' Compile syntax: BASCOM SIMTIDMO.ASC /D; | LINK SIMTIDMO;
-
- GOTO Start
- Rem $Include: 'OMNI.SUB'
- Rem $Include: 'SIMTIME.SUB'
-
- Start:
- ' Set color to your preference
- COLOR 14 , 3 , 8
- CLS
- ' Set BaseLine and all other variables
- Year = 1944
- Month = 6
- Day = 6
- Hour = 4
- BaseLine = TIMER ' The time simulation begins NOW.
-
- LOCATE 7 , 1
- Text$ = " Time Simulation Demonstration"
- GOSUB Center
- Text$ = "One second real time = one hour simulated"
- GOSUB Center
- PRINT
-
- ' TestLoop has an elegant way to escape itself
- Text$ = " Press <ESC> to quit program"
- GOSUB Center
- Temp$ = ""
- TestLoop:
- WHILE Temp$ <> CHR$(27)
- GOSUB SIMTIME
- LOCATE 12 , 1
- Text$ = " Year" + STR$(Year)
- GOSUB Center
- Text$ = "Month" + STR$(Month)
- GOSUB Center
- Text$ = " Day" + STR$(Day)
- GOSUB Center
- Text$ = " Hour" + STR$(INT(Hour))
- GOSUB Center
- PRINT
- Text$ = TIME$
- GOSUB Center
- Temp$ = INKEY$
- WEND
- SYSTEM
- '>>>> Physical EOF SIMTIDMO.ASC 25 June 86